package com.hwl.demo11.factory;

import com.hwl.demo11.service.IDepartment;
import com.hwl.demo11.service.IFactory;
import com.hwl.demo11.service.IUser;
import com.hwl.demo11.service.impl.AccessDepartment;
import com.hwl.demo11.service.impl.AccessUser;

/**
 * @author sentry
 * @since 2023-03-19
 */
public class AccessFactory implements IFactory {
    @Override
    public IUser createUser() {
        return new AccessUser();
    }

    @Override
    public IDepartment createDepartment() {
        return new AccessDepartment();
    }
}
